<template>
	<view class="content-class">
		<component :is="customPage" :pageConfig="pageConfig"></component>
	</view>
</template>

<script>
	//在此页面没有再次跳转建议使用  若有跳转会涉及返回参数问题，不建议使用此公共页面，建议注册页面之后再写
	//自定义同名组件 引入即可
	import MenstrualSetting from "./components/MenstrualSetting"
	import PregnancySetting from "./components/PregnancySetting"
	import Describe from "./components/Describe"
	import UserInfo from "./components/UserInfo"
	import MeasurementResult from "./components/MeasurementResult"
	import SelectFinger from "./components/SelectFinger"

	export default {
		components: {
			MenstrualSetting,
			PregnancySetting,
			Describe,
			UserInfo,
			MeasurementResult,
			SelectFinger
		},
		data() {
			return {
				pageConfig: {}
			};
		},
		computed: {
			customPage() {
				return this.pageConfig.page
			}
		},
		onLoad(e) {
			if (e.pageConfig) {
				this.pageConfig = JSON.parse(e.pageConfig)
				uni.setNavigationBarTitle({
					title: this.pageConfig.name
				})
			}
		},
		methods: {},
	};
</script>

<style scoped lang="scss">
	.content-class {
		height: 100%;
	}
</style>